home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Amiga
/
World of Amiga.iso
/
archive
/
3d
/
shuffle.lha
/
Shuffle.txt
< prev
next >
Wrap
Text File
|
1993-09-05
|
2KB
|
60 lines
Randomize Selected objects.
As it comes this routine needs to be assigned to an ICON in a tool window.
To do this add copy the file shuffle.rpl to 'r3d2:rpl/' and add the following
line to the file s:rpl-startup
"r3d2:rpl/shuffle.rpl" LOAD
Probably the best place is just after the line "r3d2:rpl/sys/editor.rpl" LOAD
Now run Real open a tool window and select Tool/Create Icon from the menus.
Type Randomize (case sensitive) into the box and make sure the button next to
RPL word is selected. Now select some objects and click on the icon to run it.
If you want to execute it as a macro then simply create a text file with the
following line :-
Randomize
Save the file to r3d2:macros and then select Project/Macros/Execute Named and
select the file. If you want to run it more than once as a macro then select
Projects/Macros/Named to Current and then press x every time you want to run
it.
What does it do?
It takes all the currently selected objects and moves them a random distance
in all directions. The overall randomness is defined by the user each time the
program executes. This feature was add not only to give the user some control
over the effect but also because the routine uses absolute coordinates and the
scale of your model will affect the results a great deal.
It doesn't enter sub-levels and move the contents randomly. It will only move
the entire level.
Known problems.
It can't be Undone. Undo won't work with a macro. To get round this perform a
dummy move, creation, etc before
Why?
I'm still learning RPL and a while back I saw a message from someone asking
for a way of randomizing a freeform object very slightly so it would be more
life-like and less perfect. This is the result, just make a group for each
point on the mesh and select them all before running this script.
Andy Jones
2:253/516.1 Fidonet
Pixel Perfect Computer Graphics
27a Tremaine Road
Anerley
London SE20 7UA
England